import request from "../utils/request";

// 登录
export const LoginApi=(body)=>request('/users/login',{
    method:'post',
    body
}) 
// 添加账号
export const addAccountApi=(body)=>request('/users/addOrEditAccount',{
    method:'post',
    body
})

// 获取用户列表
export const getUserListApi=(body={pageSize:10,pageNumber:1})=>request('/users/getAccountList',{
    method:'post',
    body
})

// 删除账号
export const delAccountApi=(_id)=>request('/users/delAccount?id='+_id,{
  method:'delete'
}

)